<%@page contentType="text/html; charset=utf-8" %>
<html>
<head>
<title>DWR Test</title>
<script src='/simplewiki/dwr/interface/helloAjax.js'></script>
<script src='/simplewiki/dwr/engine.js'></script>
<script type='text/javascript' src='/simplewiki/dwr/util.js'></script>

<script type="text/javascript">
<!--
function sayHello(){
	helloAjax.hello(frmdwr.yourname.value, handleHello);
}

function handleHello(str){
	dwr.util.setValue("hello", str, { escapeHtml:false });
}
-->
</script>
</head>
<body>
	이름 : <input type="text" name="yourname" value="" onkeypress="dwr.util.onReturn(event, sayHello)"/>
	<input type="button" value="hello" onclick="javascript:sayHello();"/><br/>
	<span id="hello"></span>
</body>
</html>